package com.fhz.shop.ui.mine;

import androidx.lifecycle.LiveData;

import com.fhz.shop.callback.ApiResponse;
import com.fhz.shop.entity.GoodsInfoLocal;
import com.fhz.shop.entity.PageHelper;
import com.fhz.shop.ui.home.datasource.HomeLocalDataSource;
import com.fhz.shop.ui.home.datasource.HomeRemoteDataSource;
import com.fhz.shop.ui.mine.datasource.MineLocalDataSource;
import com.fhz.shop.ui.mine.datasource.MineRemoteDataSource;

import javax.inject.Inject;

/**
 * 时间:2023/8/22
 *
 * @author Mr.Feng
 * 简述: TODO
 */
public class MineRepository {
    @Inject
    MineLocalDataSource mMineLocalDataSource;

    @Inject
    MineRemoteDataSource mMineRemoteDataSource;

    @Inject
    public MineRepository(MineLocalDataSource mineLocalDataSource, MineRemoteDataSource mineRemoteDataSource) {
        mMineLocalDataSource = mineLocalDataSource;
        mMineRemoteDataSource = mineRemoteDataSource;
    }

    public  LiveData<ApiResponse<String>> getQiNiuToken(){
        return mMineRemoteDataSource.getQiNiuToken();
    }

    public LiveData<ApiResponse<String>> updateHeadImage( String nickname,  String headImg){
        return mMineRemoteDataSource.updateHeadImage(nickname, headImg);
    }

}
